﻿@model Tuple<CashOrCard.Models.Login,CashOrCard.Models.Register>
@{var AccountItems = (List<SelectListItem>)ViewData["accountItems"]; }
@using (Html.BeginForm("Register", "Login", new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken() 
        <div id="register" class="login-right">
            <div class="new-memeber">
                <div class="title">New Member</div>
               
                @if ("register".Equals(ViewBag.validationform))
                {
                @Html.ValidationSummary();           
                 }
               
                <div class="field-title">@Html.LabelFor(m=>m.Item2.AccountType)</div>                
                <div class="dropdown-field">@Html.DropDownListFor(m=>m.Item2.AccountType, AccountItems)</div>                
                <div class="field-title">@Html.LabelFor(m=>m.Item2.Email)</div>
                <div class="field">@Html.TextBoxFor(m=>m.Item2.Email)</div>
                <div class="field-title">@Html.LabelFor(m=>m.Item2.FirstName)</div>
                <div class="field">@Html.TextBoxFor(m=>m.Item2.FirstName)</div>
                <div class="field-title">@Html.LabelFor(m=>m.Item2.LastName)</div>
                <div class="field">@Html.TextBoxFor(m=>m.Item2.LastName)</div>
                <div class="field-title">@Html.LabelFor(m=>m.Item2.Password)</div>
                <div class="field">@Html.PasswordFor(m=>m.Item2.Password)</div>
                <div class="field-title">@Html.LabelFor(m=>m.Item2.ConfirmPassword)</div>
                <div class="field">@Html.PasswordFor(m=>m.Item2.ConfirmPassword)</div>      
                <div><input type="submit" value="Register" class="register-button" /></div>
            </div>
        </div>
    }
